package net.ericaro.neojavagen.expressions ;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;

import net.ericaro.neojavagen.expressions.ConditionalExpression;
import net.ericaro.neojavagen.expressions.ConditionalAndExpression ;

import net.ericaro.neojavagen.StringUtils;
		
/**
* <pre> ConditionalOrExpression :  ConditionalAndExpression || ConditionalAndExpression || ...  
*/
public class ConditionalOrExpression extends ArrayList<ConditionalAndExpression> implements ConditionalExpression {
	
	public ConditionalOrExpression(){
		super();
	}
	
	public ConditionalOrExpression(ConditionalAndExpression ... components){
		this(Arrays.asList(components) );
	}
	public ConditionalOrExpression(Collection<ConditionalAndExpression> values ){
		super(values);
	}
	
	
	public String toString(){
		return StringUtils.toString(this, "||", "", "");
	}

}
